﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace AirLinq.Providers.Sql {
	public class SqlSelectCollection : SqlSelectCollectionBase {
		private readonly ReadOnlyCollection<SelectItem> _list;
		public SqlSelectCollection(ReadOnlyCollection<SelectItem> list) {
			if (list == null) {
				throw new ArgumentNullException("list");
			}
			_list = list;
		}
		public ReadOnlyCollection<SelectItem> SelectList {
			get {
				return _list;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.SelectCollection;
			}
		}
	}
}
